from base import Base
from selenium.webdriver.common.by import By
from time import sleep
class LoginPage(Base):
    wode=(By.ID,'com.kongfz.app:id/lav_5')
    zhanghaoshurukuang=(By.ID,'com.kongfz.app:id/et_login_name')
    mimashurukuang=(By.ID,'com.kongfz.app:id/et_pwd')
    gouxuanxieyi=(By.ID,'com.kongfz.app:id/iconf_privacy')
    dengluanniu=(By.ID,'com.kongfz.app:id/tv_confirm_btn')
    dy=(By.ID,'com.kongfz.app:id/include_left_title')
    dy2=(By.ID,'com.kongfz.app:id/tv_order')
    def loginyewu(self,name,password):
        self.find_ele(self.wode).click()
        sleep(2)
        self.find_ele(self.zhanghaoshurukuang).send_keys(name)
        sleep(2)
        self.find_ele(self.mimashurukuang).send_keys(password)
        sleep(2)
        self.find_ele(self.gouxuanxieyi).click()
        sleep(2)
        self.find_ele(self.dengluanniu).click()
        sleep(4)